package cn.lhf.myblog.context;

import com.fasterxml.jackson.annotation.JsonValue;

public enum StatusCode {
    OK(0),
    UNKNOWN(-1),
    LOGIN_INVALID(100),
    USERNAME_EXISTED(101),
    EMAIL_EXISTED(102),
    PASSWORD_INCONSISTENT(103);

    int value;


    StatusCode(int value) {
        this.value = value;
    }

    @JsonValue
    public int getValue() {
        return value;
    }
}
